import {createRouter, createWebHistory} from 'vue-router'
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/userlogin',
           component: () => import('../views/UserLogin.vue')
        },
        {
            path: '/usersList',
           component: () => import('../views/UsersList.vue')
        },

        {
            path: '/login',
           component: () => import('../views/Finance/Login.vue')
        },
        {
            path: '/adminFinance',
           component: () => import('../views/Finance/AdminFinance.vue')
        },
        {
            path: '/adminFinanceList',
           component: () => import('../views/Finance/AdminFinanceList.vue')
        },
        {
            path: '/userFinance',
           component: () => import('../views/Finance/UserFinance.vue')
        },
        {
            path: '/userFinanceList',
           component: () => import('../views/Finance/UserFinanceList.vue')
        },
        {
            path: '/userInvestList',
           component: () => import('../views/Invest/UserInvestList.vue')
        },
        {
            path: '/userInvest',
           component: () => import('../views/Invest/UserInvest.vue')
        },
        {
            path: '/aminInvestList',
           component: () => import('../views/Invest/AdminInvestList.vue')
        },
        {
            path: '/adminInvest',
           component: () => import('../views/Invest/AdminInvest.vue')
        },
        {
            path: '/userInvestLogin',
           component: () => import('../views/Invest/UserInvest_Login.vue')
        },
        {
            path: '/userRedeem',
           component: () => import('../views/Invest/UserRedeem.vue')
        },
    ]
})
export default router   